package com.victualler.core.base.dao;

import com.victualler.core.common.annotation.InitEditColumn;
import com.victualler.core.common.annotation.ListShowColumn;
import com.victualler.core.common.enums.ColumnFormatEnum;

import javax.persistence.MappedSuperclass;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author: Guoshichang
 * @Date: Create in 18:02 2018/4/5
 * @Discription:  订单类型的基类 主要是为了走审核流程
 */
@MappedSuperclass
public abstract class BaseOrderDao extends BaseDao implements Serializable{

    //制单人
    @ListShowColumn(title = "制单人",sort = 981)
    @InitEditColumn(title = "制单人",sort = 981,canEdit = false)
    private String createUser;

    private String createUserCode;

    //经办人
    @ListShowColumn(title = "经办人",sort = 982)
    @InitEditColumn(title = "经办人",sort = 982)
    private String madeUser;

    private String madeUserCode;

    //提审时间
    @ListShowColumn(title = "提审时间",sort = 983,type = ColumnFormatEnum.DATE)
    private Date commitDate;

    //审核人
    @ListShowColumn(title = "审核人",sort = 984)
    @InitEditColumn(title = "审核人",sort = 984,required = false)
    private String checkUser;


    private String checkUserCode;

    //审核时间
    @ListShowColumn(title = "审核时间",sort = 985,type = ColumnFormatEnum.DATE)
    private Date checkDate ;

    //审核意见
    @ListShowColumn(title = "审核意见",sort = 986)
    @InitEditColumn(title = "审核意见",sort = 986,required = false)
    private String checkRemark;

    //审核状态
    @ListShowColumn(title = "审核状态",sort = 987,type = ColumnFormatEnum.DICT,dictCodeType = "CheckState")
    private int checkState;


    public String getMadeUser() {
        return madeUser;
    }

    public void setMadeUser(String madeUser) {
        this.madeUser = madeUser;
    }

    public String getCheckUser() {
        return checkUser;
    }

    public void setCheckUser(String checkUser) {
        this.checkUser = checkUser;
    }

    public int getCheckState() {
        return checkState;
    }

    public void setCheckState(int checkState) {
        this.checkState = checkState;
    }

    public Date getCheckDate() {
        return checkDate;
    }

    public void setCheckDate(Date checkDate) {
        this.checkDate = checkDate;
    }

    public String getCheckRemark() {
        return checkRemark;
    }

    public void setCheckRemark(String checkRemark) {
        this.checkRemark = checkRemark;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getCreateUserCode() {
        return createUserCode;
    }

    public void setCreateUserCode(String createUserCode) {
        this.createUserCode = createUserCode;
    }

    public String getMadeUserCode() {
        return madeUserCode;
    }

    public void setMadeUserCode(String madeUserCode) {
        this.madeUserCode = madeUserCode;
    }

    public Date getCommitDate() {
        return commitDate;
    }

    public void setCommitDate(Date commitDate) {
        this.commitDate = commitDate;
    }

    public String getCheckUserCode() {
        return checkUserCode;
    }

    public void setCheckUserCode(String checkUserCode) {
        this.checkUserCode = checkUserCode;
    }
}
